package com.cn.pg;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;

/**
 * 多数据源切换实例
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@MapperScan("com.cn.pg.dao")
@EnableCaching
public class DataRoutingTestApplication {

    public static void main(String[] args) {
        SpringApplication.run(DataRoutingTestApplication.class, args);
    }

}
